import { AppRouteRecordRaw } from '@/router/types';

const demoRoute: AppRouteRecordRaw[] = [
	{
		path: 'demo',
		name: 'Demo',
		component: () => import('@/views/demo/index.vue'),
		meta: {
			title: 'Demo',
			icon: 'fa-solid:directions',
			ignoreAuth: true,
		},
	},
	{
		path: 'demo-useTable',
		name: 'UseTableDemo',
		component: () => import('@/views/demo/table/UseTable.vue'),
		meta: {
			title: 'UseTableDemo',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/simpleUseTable',
		name: 'SimpleUseTableDemo',
		component: () => import('@/views/demo/table/SimpleUseTable.vue'),
		meta: {
			title: 'SimpleUseTableDemo',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/basicTable',
		name: 'BasicTableDemo',
		component: () => import('@/views/demo/table/Basic.vue'),
		meta: {
			title: '基础表格',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/treeTable',
		name: 'TreeTableDemo',
		component: () => import('@/views/demo/table/TreeTable.vue'),
		meta: {
			title: '树形表格',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/treeAndTable',
		name: 'TreeAndTableDemo',
		component: () => import('@/views/demo/table/TreeAndTable.vue'),
		meta: {
			title: '树+表格',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/basicForm',
		name: 'BasicFromDemo',
		component: () => import('@/views/demo/form/Basic.vue'),
		meta: {
			title: '基础表单',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/ruleForm',
		name: 'RuleFromDemo',
		component: () => import('@/views/demo/form/RuleForm.vue'),
		meta: {
			title: '表单验证',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/dynamicForm',
		name: 'DynamicFromDemo',
		component: () => import('@/views/demo/form/DynamicForm.vue'),
		meta: {
			title: '动态表单',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/basicFormPage',
		name: 'BasicFormPageDemo',
		component: () => import('@/views/demo/form/basic/index.vue'),
		meta: {
			title: '基础表单页面',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/stepFormPage',
		name: 'StepFormPageDemo',
		component: () => import('@/views/demo/form/step/index.vue'),
		meta: {
			title: '分布表单页面',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/upload',
		name: 'UploadDemo',
		component: () => import('@/views/demo/upload/index.vue'),
		meta: {
			title: '文件上传',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/echarts',
		name: 'EchartsDemo',
		component: () => import('@/views/demo/echart/Bar.vue'),
		meta: {
			title: 'echarts图表',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/modal',
		name: 'ModalDemo',
		component: () => import('@/views/demo/modal/index.vue'),
		meta: {
			title: '弹框示例',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
	{
		path: 'demo/drawer',
		name: 'DrawerDemo',
		component: () => import('@/views/demo/drawer/index.vue'),
		meta: {
			title: '抽屉示例',
			ignoreAuth: true,
			hideMenu: true,
		},
	},
];

export default demoRoute;
